package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.system.domain.AdministrativeAreaCasesNumber;
import com.ruoyi.system.domain.AdministrativeAreaResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.CivilAreaCasesNumberMapper;
import com.ruoyi.system.domain.CivilAreaCasesNumber;
import com.ruoyi.system.service.ICivilAreaCasesNumberService;

/**
 * 民事公益诉讼领域情况Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-05-23
 */
@Service
public class CivilAreaCasesNumberServiceImpl implements ICivilAreaCasesNumberService 
{
    @Autowired
    private CivilAreaCasesNumberMapper civilAreaCasesNumberMapper;

    /**
     * 查询民事公益诉讼领域情况
     * 
     * @param id 民事公益诉讼领域情况主键
     * @return 民事公益诉讼领域情况
     */
    @Override
    public CivilAreaCasesNumber selectCivilAreaCasesNumberById(Long id)
    {
        return civilAreaCasesNumberMapper.selectCivilAreaCasesNumberById(id);
    }

    /**
     * 查询民事公益诉讼领域情况列表
     * 
     * @param civilAreaCasesNumber 民事公益诉讼领域情况
     * @return 民事公益诉讼领域情况
     */
    @Override
    public List<CivilAreaCasesNumber> selectCivilAreaCasesNumberList(CivilAreaCasesNumber civilAreaCasesNumber)
    {
        return civilAreaCasesNumberMapper.selectCivilAreaCasesNumberList(civilAreaCasesNumber);
    }

    @Override
    public List<AdministrativeAreaResult> selectResultAreaCasesNumberList(AdministrativeAreaCasesNumber administrativeAreaCasesNumber)
    {
        return civilAreaCasesNumberMapper.selectResultAreaCasesNumberList(administrativeAreaCasesNumber);
    }
    /**
     * 新增民事公益诉讼领域情况
     * 
     * @param civilAreaCasesNumber 民事公益诉讼领域情况
     * @return 结果
     */
    @Override
    public int insertCivilAreaCasesNumber(CivilAreaCasesNumber civilAreaCasesNumber)
    {
        civilAreaCasesNumber.setCreateTime(DateUtils.getNowDate());
        return civilAreaCasesNumberMapper.insertCivilAreaCasesNumber(civilAreaCasesNumber);
    }

    /**
     * 修改民事公益诉讼领域情况
     * 
     * @param civilAreaCasesNumber 民事公益诉讼领域情况
     * @return 结果
     */
    @Override
    public int updateCivilAreaCasesNumber(CivilAreaCasesNumber civilAreaCasesNumber)
    {
        civilAreaCasesNumber.setUpdateTime(DateUtils.getNowDate());
        return civilAreaCasesNumberMapper.updateCivilAreaCasesNumber(civilAreaCasesNumber);
    }

    /**
     * 批量删除民事公益诉讼领域情况
     * 
     * @param ids 需要删除的民事公益诉讼领域情况主键
     * @return 结果
     */
    @Override
    public int deleteCivilAreaCasesNumberByIds(Long[] ids)
    {
        return civilAreaCasesNumberMapper.deleteCivilAreaCasesNumberByIds(ids);
    }

    /**
     * 删除民事公益诉讼领域情况信息
     * 
     * @param id 民事公益诉讼领域情况主键
     * @return 结果
     */
    @Override
    public int deleteCivilAreaCasesNumberById(Long id)
    {
        return civilAreaCasesNumberMapper.deleteCivilAreaCasesNumberById(id);
    }
}
